package com.openbravo.pos.inventory;

import com.openbravo.basic.BasicException;
import com.openbravo.beans.DateUtils;
import com.openbravo.beans.JCalendarDialog;
import com.openbravo.data.gui.ComboBoxValModel;
import com.openbravo.data.gui.MessageInf;
import com.openbravo.data.loader.SentenceList;
import com.openbravo.data.user.DirtyManager;
import com.openbravo.data.user.EditorRecord;
import com.openbravo.format.Formats;
import com.openbravo.pos.catalog.CatalogSelector;
import com.openbravo.pos.catalog.JCatalog;
import com.openbravo.pos.forms.AppLocal;
import com.openbravo.pos.forms.AppView;
import com.openbravo.pos.forms.DataLogicSales;
import com.openbravo.pos.panels.JProductFinder;
import com.openbravo.pos.sales.JProductAttEdit;
import com.openbravo.pos.ticket.ProductInfoExt;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Date;
import java.util.UUID;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.text.Document;

public class StockDiaryEditor extends JPanel
  implements EditorRecord
{
  private CatalogSelector m_cat;
  private String m_sID;
  private String productid;
  private String productref;
  private String productcode;
  private String productname;
  private String attsetid;
  private String attsetinstid;
  private String attsetinstdesc;
  private ComboBoxValModel m_ReasonModel;
  private SentenceList m_sentlocations;
  private ComboBoxValModel m_LocationsModel;
  private AppView m_App;
  private DataLogicSales m_dlSales;
  private JButton jEditAttributes;
  private JButton jEditProduct;
  private JLabel jLabel1;
  private JLabel jLabel2;
  private JLabel jLabel3;
  private JLabel jLabel4;
  private JLabel jLabel5;
  private JLabel jLabel6;
  private JLabel jLabel7;
  private JLabel jLabel8;
  private JLabel jLabel9;
  private JPanel jPanel1;
  private JTextField jattributes;
  private JTextField jproduct;
  private JButton m_jEnter;
  private JButton m_jEnter1;
  private JComboBox m_jLocation;
  private JButton m_jbtndate;
  private JTextField m_jcodebar;
  private JTextField m_jdate;
  private JTextField m_jprice;
  private JComboBox m_jreason;
  private JTextField m_jreference;
  private JTextField m_junits;

  public StockDiaryEditor(AppView paramAppView, DirtyManager paramDirtyManager)
  {
    this.m_App = paramAppView;
    this.m_dlSales = ((DataLogicSales)this.m_App.getBean("com.openbravo.pos.forms.DataLogicSales"));
    initComponents();
    this.m_cat = new JCatalog(this.m_dlSales);
    this.m_cat.getComponent().setPreferredSize(new Dimension(0, 245));
    this.m_cat.addActionListener(new CatalogListener( ));
    add(this.m_cat.getComponent(), "South");
    this.m_sentlocations = this.m_dlSales.getLocationsList();
    this.m_LocationsModel = new ComboBoxValModel();
    this.m_ReasonModel = new ComboBoxValModel();
    this.m_ReasonModel.add(MovementReason.IN_PURCHASE);
    this.m_ReasonModel.add(MovementReason.IN_REFUND);
    this.m_ReasonModel.add(MovementReason.IN_MOVEMENT);
    this.m_ReasonModel.add(MovementReason.OUT_SALE);
    this.m_ReasonModel.add(MovementReason.OUT_REFUND);
    this.m_ReasonModel.add(MovementReason.OUT_BREAK);
    this.m_ReasonModel.add(MovementReason.OUT_MOVEMENT);
    this.m_jreason.setModel(this.m_ReasonModel);
    this.m_jdate.getDocument().addDocumentListener(paramDirtyManager);
    this.m_jreason.addActionListener(paramDirtyManager);
    this.m_jLocation.addActionListener(paramDirtyManager);
    this.jproduct.getDocument().addDocumentListener(paramDirtyManager);
    this.jattributes.getDocument().addDocumentListener(paramDirtyManager);
    this.m_junits.getDocument().addDocumentListener(paramDirtyManager);
    this.m_jprice.getDocument().addDocumentListener(paramDirtyManager);
    writeValueEOF();
  }

  public void activate()
    throws BasicException
  {
    this.m_cat.loadCatalog();
    this.m_LocationsModel = new ComboBoxValModel(this.m_sentlocations.list());
    this.m_jLocation.setModel(this.m_LocationsModel);
  }

  public void refresh()
  {
  }

  public void writeValueEOF()
  {
    this.m_sID = null;
    this.m_jdate.setText(null);
    this.m_ReasonModel.setSelectedKey(null);
    this.m_LocationsModel.setSelectedKey(this.m_App.getInventoryLocation());
    this.productid = null;
    this.productref = null;
    this.productcode = null;
    this.productname = null;
    this.m_jreference.setText(null);
    this.m_jcodebar.setText(null);
    this.jproduct.setText(null);
    this.attsetid = null;
    this.attsetinstid = null;
    this.attsetinstdesc = null;
    this.jattributes.setText(null);
    this.m_junits.setText(null);
    this.m_jprice.setText(null);
    this.m_jdate.setEnabled(false);
    this.m_jbtndate.setEnabled(false);
    this.m_jreason.setEnabled(false);
    this.m_jreference.setEnabled(false);
    this.m_jEnter1.setEnabled(false);
    this.m_jcodebar.setEnabled(false);
    this.m_jEnter.setEnabled(false);
    this.m_jLocation.setEnabled(false);
    this.jproduct.setEnabled(false);
    this.jEditProduct.setEnabled(false);
    this.jattributes.setEnabled(false);
    this.jEditAttributes.setEnabled(false);
    this.m_junits.setEnabled(false);
    this.m_jprice.setEnabled(false);
    this.m_cat.setComponentEnabled(false);
  }

  public void writeValueInsert()
  {
    this.m_sID = UUID.randomUUID().toString();
    this.m_jdate.setText(Formats.TIMESTAMP.formatValue(DateUtils.getTodayMinutes()));
    this.m_ReasonModel.setSelectedItem(MovementReason.IN_PURCHASE);
    this.m_LocationsModel.setSelectedKey(this.m_App.getInventoryLocation());
    this.productid = null;
    this.productref = null;
    this.productcode = null;
    this.productname = null;
    this.m_jreference.setText(null);
    this.m_jcodebar.setText(null);
    this.jproduct.setText(null);
    this.attsetid = null;
    this.attsetinstid = null;
    this.attsetinstdesc = null;
    this.jattributes.setText(null);
    this.m_jcodebar.setText(null);
    this.m_junits.setText(null);
    this.m_jprice.setText(null);
    this.m_jdate.setEnabled(true);
    this.m_jbtndate.setEnabled(true);
    this.m_jreason.setEnabled(true);
    this.m_jreference.setEnabled(true);
    this.m_jEnter1.setEnabled(true);
    this.m_jcodebar.setEnabled(true);
    this.m_jEnter.setEnabled(true);
    this.m_jLocation.setEnabled(true);
    this.jproduct.setEnabled(true);
    this.jEditProduct.setEnabled(true);
    this.jattributes.setEnabled(true);
    this.jEditAttributes.setEnabled(true);
    this.m_junits.setEnabled(true);
    this.m_jprice.setEnabled(true);
    this.m_cat.setComponentEnabled(true);
  }

  public void writeValueDelete(Object paramObject)
  {
    Object[] arrayOfObject = (Object[])(Object[])paramObject;
    this.m_sID = ((String)arrayOfObject[0]);
    this.m_jdate.setText(Formats.TIMESTAMP.formatValue(arrayOfObject[1]));
    this.m_ReasonModel.setSelectedKey(arrayOfObject[2]);
    this.m_LocationsModel.setSelectedKey(arrayOfObject[3]);
    this.productid = ((String)arrayOfObject[4]);
    this.productref = ((String)arrayOfObject[8]);
    this.productcode = ((String)arrayOfObject[9]);
    this.productname = ((String)arrayOfObject[10]);
    this.m_jreference.setText(this.productref);
    this.m_jcodebar.setText(this.productcode);
    this.jproduct.setText(this.productname);
    this.attsetid = ((String)arrayOfObject[11]);
    this.attsetinstid = ((String)arrayOfObject[5]);
    this.attsetinstdesc = ((String)arrayOfObject[12]);
    this.jattributes.setText(this.attsetinstdesc);
    this.m_junits.setText(Formats.DOUBLE.formatValue(signum((Double)arrayOfObject[6], (Integer)arrayOfObject[2])));
    this.m_jprice.setText(Formats.CURRENCY.formatValue(arrayOfObject[7]));
    this.m_jdate.setEnabled(false);
    this.m_jbtndate.setEnabled(false);
    this.m_jreason.setEnabled(false);
    this.m_jreference.setEnabled(false);
    this.m_jEnter1.setEnabled(false);
    this.m_jcodebar.setEnabled(false);
    this.m_jEnter.setEnabled(false);
    this.m_jLocation.setEnabled(false);
    this.jproduct.setEnabled(false);
    this.jEditProduct.setEnabled(false);
    this.jattributes.setEnabled(false);
    this.jEditAttributes.setEnabled(false);
    this.m_junits.setEnabled(false);
    this.m_jprice.setEnabled(false);
    this.m_cat.setComponentEnabled(false);
  }

  public void writeValueEdit(Object paramObject)
  {
    Object[] arrayOfObject = (Object[])(Object[])paramObject;
    this.m_sID = ((String)arrayOfObject[0]);
    this.m_jdate.setText(Formats.TIMESTAMP.formatValue(arrayOfObject[1]));
    this.m_ReasonModel.setSelectedKey(arrayOfObject[2]);
    this.m_LocationsModel.setSelectedKey(arrayOfObject[3]);
    this.productid = ((String)arrayOfObject[4]);
    this.productref = ((String)arrayOfObject[8]);
    this.productcode = ((String)arrayOfObject[9]);
    this.productname = ((String)arrayOfObject[10]);
    this.m_jreference.setText(this.productref);
    this.m_jcodebar.setText(this.productcode);
    this.jproduct.setText(this.productname);
    this.attsetid = ((String)arrayOfObject[11]);
    this.attsetinstid = ((String)arrayOfObject[5]);
    this.attsetinstdesc = ((String)arrayOfObject[12]);
    this.jattributes.setText(this.attsetinstdesc);
    this.m_junits.setText(Formats.DOUBLE.formatValue(signum((Double)arrayOfObject[6], (Integer)arrayOfObject[2])));
    this.m_jprice.setText(Formats.CURRENCY.formatValue(arrayOfObject[7]));
    this.m_jdate.setEnabled(false);
    this.m_jbtndate.setEnabled(false);
    this.m_jreason.setEnabled(false);
    this.m_jreference.setEnabled(false);
    this.m_jEnter1.setEnabled(false);
    this.m_jcodebar.setEnabled(false);
    this.m_jEnter.setEnabled(false);
    this.m_jLocation.setEnabled(false);
    this.jproduct.setEnabled(true);
    this.jEditProduct.setEnabled(true);
    this.jattributes.setEnabled(false);
    this.jEditAttributes.setEnabled(false);
    this.m_junits.setEnabled(false);
    this.m_jprice.setEnabled(false);
    this.m_cat.setComponentEnabled(false);
  }

  public Object createValue()
    throws BasicException
  {
    return new Object[] { this.m_sID, Formats.TIMESTAMP.parseValue(this.m_jdate.getText()), this.m_ReasonModel.getSelectedKey(), this.m_LocationsModel.getSelectedKey(), this.productid, this.attsetinstid, samesignum((Double)Formats.DOUBLE.parseValue(this.m_junits.getText()), (Integer)this.m_ReasonModel.getSelectedKey()), Formats.CURRENCY.parseValue(this.m_jprice.getText()), this.productref, this.productcode, this.productname, this.attsetid, this.attsetinstdesc };
  }

  public Component getComponent()
  {
    return this;
  }

  private Double signum(Double paramDouble, Integer paramInteger)
  {
    if ((paramDouble == null) || (paramInteger == null))
      return paramDouble;
    if (paramInteger.intValue() < 0)
      return new Double(-paramDouble.doubleValue());
    return paramDouble;
  }

  private Double samesignum(Double paramDouble, Integer paramInteger)
  {
    if ((paramDouble == null) || (paramInteger == null))
      return paramDouble;
    if (((paramInteger.intValue() > 0) && (paramDouble.doubleValue() < 0.0D)) || ((paramInteger.intValue() < 0) && (paramDouble.doubleValue() > 0.0D)))
      return new Double(-paramDouble.doubleValue());
    return paramDouble;
  }

  private void assignProduct(ProductInfoExt paramProductInfoExt)
  {
    if (this.jproduct.isEnabled())
      if (paramProductInfoExt == null)
      {
        this.productid = null;
        this.productref = null;
        this.productcode = null;
        this.productname = null;
        this.attsetid = null;
        this.attsetinstid = null;
        this.attsetinstdesc = null;
        this.jproduct.setText(null);
        this.m_jcodebar.setText(null);
        this.m_jreference.setText(null);
        this.jattributes.setText(null);
      }
      else
      {
        this.productid = paramProductInfoExt.getID();
        this.productref = paramProductInfoExt.getReference();
        this.productcode = paramProductInfoExt.getCode();
        this.productname = paramProductInfoExt.toString();
        this.attsetid = paramProductInfoExt.getAttributeSetID();
        this.attsetinstid = null;
        this.attsetinstdesc = null;
        this.jproduct.setText(this.productname);
        this.m_jcodebar.setText(this.productcode);
        this.m_jreference.setText(this.productref);
        this.jattributes.setText(null);
        MovementReason localMovementReason = (MovementReason)this.m_ReasonModel.getSelectedItem();
        Double localDouble = localMovementReason.getPrice(Double.valueOf(paramProductInfoExt.getPriceBuy()), Double.valueOf(paramProductInfoExt.getPriceSell()));
        this.m_jprice.setText(Formats.CURRENCY.formatValue(localDouble));
      }
  }

  private void assignProductByCode()
  {
    try
    {
      ProductInfoExt localProductInfoExt = this.m_dlSales.getProductInfoByCode(this.m_jcodebar.getText());
      if (localProductInfoExt == null)
      {
        assignProduct(null);
        Toolkit.getDefaultToolkit().beep();
      }
      else
      {
        assignProduct(localProductInfoExt);
      }
    }
    catch (BasicException localBasicException)
    {
      assignProduct(null);
      MessageInf localMessageInf = new MessageInf(localBasicException);
      localMessageInf.show(this);
    }
  }

  private void assignProductByReference()
  {
    try
    {
      ProductInfoExt localProductInfoExt = this.m_dlSales.getProductInfoByReference(this.m_jreference.getText());
      if (localProductInfoExt == null)
      {
        assignProduct(null);
        Toolkit.getDefaultToolkit().beep();
      }
      else
      {
        assignProduct(localProductInfoExt);
      }
    }
    catch (BasicException localBasicException)
    {
      assignProduct(null);
      MessageInf localMessageInf = new MessageInf(localBasicException);
      localMessageInf.show(this);
    }
  }

  private void initComponents()
  {
    this.jPanel1 = new JPanel();
    this.jLabel1 = new JLabel();
    this.m_jdate = new JTextField();
    this.jLabel2 = new JLabel();
    this.jLabel3 = new JLabel();
    this.jattributes = new JTextField();
    this.m_jreason = new JComboBox();
    this.jEditAttributes = new JButton();
    this.m_jbtndate = new JButton();
    this.jLabel4 = new JLabel();
    this.jLabel5 = new JLabel();
    this.m_junits = new JTextField();
    this.m_jprice = new JTextField();
    this.m_jcodebar = new JTextField();
    this.m_jEnter = new JButton();
    this.m_jreference = new JTextField();
    this.m_jEnter1 = new JButton();
    this.jLabel6 = new JLabel();
    this.jLabel7 = new JLabel();
    this.m_jLocation = new JComboBox();
    this.jLabel8 = new JLabel();
    this.jproduct = new JTextField();
    this.jEditProduct = new JButton();
    this.jLabel9 = new JLabel();
    setLayout(new BorderLayout());
    this.jPanel1.setLayout(null);
    this.jLabel1.setText(AppLocal.getIntString("label.stockdate"));
    this.jPanel1.add(this.jLabel1);
    this.jLabel1.setBounds(10, 30, 150, 15);
    this.jPanel1.add(this.m_jdate);
    this.m_jdate.setBounds(160, 30, 200, 19);
    this.jLabel2.setText(AppLocal.getIntString("label.stockreason"));
    this.jPanel1.add(this.jLabel2);
    this.jLabel2.setBounds(10, 60, 150, 15);
    this.jLabel3.setText(AppLocal.getIntString("label.stockproduct"));
    this.jPanel1.add(this.jLabel3);
    this.jLabel3.setBounds(10, 120, 150, 15);
    this.jattributes.setEditable(false);
    this.jPanel1.add(this.jattributes);
    this.jattributes.setBounds(160, 210, 250, 19);
    this.jPanel1.add(this.m_jreason);
    this.m_jreason.setBounds(160, 60, 200, 20);
    this.jEditAttributes.setIcon(new ImageIcon(getClass().getResource("/com/openbravo/images/colorize16.png")));
    this.jEditAttributes.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent paramActionEvent)
      {
        StockDiaryEditor.this.jEditAttributesActionPerformed(paramActionEvent);
      }
    });
    this.jPanel1.add(this.jEditAttributes);
    this.jEditAttributes.setBounds(420, 210, 40, 26);
    this.m_jbtndate.setIcon(new ImageIcon(getClass().getResource("/com/openbravo/images/date.png")));
    this.m_jbtndate.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent paramActionEvent)
      {
        StockDiaryEditor.this.m_jbtndateActionPerformed(paramActionEvent);
      }
    });
    this.jPanel1.add(this.m_jbtndate);
    this.m_jbtndate.setBounds(370, 30, 40, 26);
    this.jLabel4.setText(AppLocal.getIntString("label.units"));
    this.jPanel1.add(this.jLabel4);
    this.jLabel4.setBounds(10, 240, 150, 15);
    this.jLabel5.setText(AppLocal.getIntString("label.price"));
    this.jPanel1.add(this.jLabel5);
    this.jLabel5.setBounds(10, 270, 150, 15);
    this.m_junits.setHorizontalAlignment(4);
    this.jPanel1.add(this.m_junits);
    this.m_junits.setBounds(160, 240, 70, 19);
    this.m_jprice.setHorizontalAlignment(4);
    this.jPanel1.add(this.m_jprice);
    this.m_jprice.setBounds(160, 270, 70, 19);
    this.m_jcodebar.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent paramActionEvent)
      {
        StockDiaryEditor.this.m_jcodebarActionPerformed(paramActionEvent);
      }
    });
    this.jPanel1.add(this.m_jcodebar);
    this.m_jcodebar.setBounds(280, 150, 130, 19);
    this.m_jEnter.setIcon(new ImageIcon(getClass().getResource("/com/openbravo/images/apply.png")));
    this.m_jEnter.setFocusPainted(false);
    this.m_jEnter.setFocusable(false);
    this.m_jEnter.setRequestFocusEnabled(false);
    this.m_jEnter.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent paramActionEvent)
      {
        StockDiaryEditor.this.m_jEnterActionPerformed(paramActionEvent);
      }
    });
    this.jPanel1.add(this.m_jEnter);
    this.m_jEnter.setBounds(420, 150, 40, 26);
    this.m_jreference.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent paramActionEvent)
      {
        StockDiaryEditor.this.m_jreferenceActionPerformed(paramActionEvent);
      }
    });
    this.jPanel1.add(this.m_jreference);
    this.m_jreference.setBounds(280, 120, 130, 19);
    this.m_jEnter1.setIcon(new ImageIcon(getClass().getResource("/com/openbravo/images/apply.png")));
    this.m_jEnter1.setFocusPainted(false);
    this.m_jEnter1.setFocusable(false);
    this.m_jEnter1.setRequestFocusEnabled(false);
    this.m_jEnter1.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent paramActionEvent)
      {
        StockDiaryEditor.this.m_jEnter1ActionPerformed(paramActionEvent);
      }
    });
    this.jPanel1.add(this.m_jEnter1);
    this.m_jEnter1.setBounds(420, 120, 40, 26);
    this.jLabel6.setText(AppLocal.getIntString("label.prodref"));
    this.jPanel1.add(this.jLabel6);
    this.jLabel6.setBounds(160, 120, 120, 15);
    this.jLabel7.setText(AppLocal.getIntString("label.prodbarcode"));
    this.jPanel1.add(this.jLabel7);
    this.jLabel7.setBounds(160, 150, 120, 15);
    this.jPanel1.add(this.m_jLocation);
    this.m_jLocation.setBounds(160, 90, 200, 20);
    this.jLabel8.setText(AppLocal.getIntString("label.warehouse"));
    this.jPanel1.add(this.jLabel8);
    this.jLabel8.setBounds(10, 90, 150, 15);
    this.jproduct.setEditable(false);
    this.jPanel1.add(this.jproduct);
    this.jproduct.setBounds(160, 180, 250, 19);
    this.jEditProduct.setIcon(new ImageIcon(getClass().getResource("/com/openbravo/images/search.png")));
    this.jEditProduct.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent paramActionEvent)
      {
        StockDiaryEditor.this.jEditProductActionPerformed(paramActionEvent);
      }
    });
    this.jPanel1.add(this.jEditProduct);
    this.jEditProduct.setBounds(420, 180, 40, 26);
    this.jLabel9.setText(AppLocal.getIntString("label.attributes"));
    this.jPanel1.add(this.jLabel9);
    this.jLabel9.setBounds(10, 210, 150, 15);
    add(this.jPanel1, "Center");
  }

  private void m_jEnter1ActionPerformed(ActionEvent paramActionEvent)
  {
    assignProductByReference();
  }

  private void m_jreferenceActionPerformed(ActionEvent paramActionEvent)
  {
    assignProductByReference();
  }

  private void m_jcodebarActionPerformed(ActionEvent paramActionEvent)
  {
    assignProductByCode();
  }

  private void m_jEnterActionPerformed(ActionEvent paramActionEvent)
  {
    assignProductByCode();
  }

  private void jEditAttributesActionPerformed(ActionEvent paramActionEvent)
  {
    Object localObject;
    if (this.productid == null)
    {
      localObject = new MessageInf(-33554432, AppLocal.getIntString("message.productnotselected"));
      ((MessageInf)localObject).show(this);
    }
    else
    {
      try
      {
        localObject = JProductAttEdit.getAttributesEditor(this, this.m_App.getSession());
        ((JProductAttEdit)localObject).editAttributes(this.attsetid, this.attsetinstid);
        ((JProductAttEdit)localObject).setVisible(true);
        if (((JProductAttEdit)localObject).isOK())
        {
          this.attsetinstid = ((JProductAttEdit)localObject).getAttributeSetInst();
          this.attsetinstdesc = ((JProductAttEdit)localObject).getAttributeSetInstDescription();
          this.jattributes.setText(this.attsetinstdesc);
        }
      }
      catch (BasicException localBasicException)
      {
        MessageInf localMessageInf = new MessageInf(-33554432, AppLocal.getIntString("message.cannotfindattributes"), localBasicException);
        localMessageInf.show(this);
      }
    }
  }

  private void m_jbtndateActionPerformed(ActionEvent paramActionEvent)
  {
	  Date localDate;
	try
    {
      localDate = (Date)Formats.TIMESTAMP.parseValue(this.m_jdate.getText());
    }
    catch (BasicException localBasicException)
    {
      localDate = null;
    }
     localDate = JCalendarDialog.showCalendarTime(this, localDate);
    if (localDate != null)
      this.m_jdate.setText(Formats.TIMESTAMP.formatValue(localDate));
  }

  private void jEditProductActionPerformed(ActionEvent paramActionEvent)
  {
    assignProduct(JProductFinder.showMessage(this, this.m_dlSales));
  }

  private class CatalogListener
    implements ActionListener
  {
    private CatalogListener()
    {
    }

    public void actionPerformed(ActionEvent paramActionEvent)
    {
      StockDiaryEditor.this.assignProduct((ProductInfoExt)paramActionEvent.getSource());
    }
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.pos.inventory.StockDiaryEditor
 * JD-Core Version:    0.6.0
 */